package com.qing.springbootinit.model.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

// * @author <a href="https://github.com/qingfengzy">qingfengzy</a>

@TableName(value ="chatMessages")
//@Builder
@Data
public class ChatMessages {

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * roomId
     */
    private String roomId;

    /**
     * 角色
     */
    private Object sender;

    /**
     * 内容
     */
    private String content;

    /**
     * 创建时间
     */
    private Date createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}
